package com.goodmr.passport.webapp.controller;

import com.goodmr.passport.webapp.model.request.VerifyCodeReq;
import com.goodmr.passport.webapp.model.response.VerifyCodeResp;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

/**
 * 验证码
 *
 * @author <a href="mailto:bingdong13@msn.com">bigo</a>
 */
@RestController
@RequestMapping(path = "/passport/code")
public class VerifyCodeController {

    @PostMapping("/signin")
    public ResponseEntity login(@Valid @RequestBody VerifyCodeReq body) {
        return null;
    }

    @PostMapping("/signup")
    public ResponseEntity register(@Valid @RequestBody VerifyCodeReq body) {
        return null;
    }

    @PostMapping("/password/reset")
    public ResponseEntity resetPassword(@Valid @RequestBody VerifyCodeReq body) {
        return null;
    }

    @PostMapping("/password/change")
    public ResponseEntity setPassword(HttpServletRequest request) {
        return null;
    }

    @GetMapping("/verify")
    public ResponseEntity<VerifyCodeResp> verify(String account, String code) {
        return null;
    }
}
